package cn.blnp.net.flowable.boot.config.flowable;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import org.flowable.common.engine.impl.cfg.IdGenerator;

/**
 * <h3>自定义ID生成器</h3>
 *
 * @author <a href="mailto:blnp.yibin@qq.com">lyb</a>
 * @version 1.0
 * @since 2025/6/23 14:18
 */
public class SnowFlakeIdGenerator implements IdGenerator {
    @Override
    public String getNextId() {
        Snowflake snowflake = IdUtil.getSnowflake(1, 1);
        return snowflake.nextIdStr();
    }
}
